export class User {
    id:string;
    constructor(id:string) { 
        this.id = id;
    }
    fetchData(callback:(data:string)=>void,delay:number) {
        setTimeout(() => {
            const data = `Data for user with id: ${this.id}`;
            callback(data);
        }, delay);
    }

}